<div>
    <div class="hidden lg:block bg-white p-6 rounded-xl">
        <div class="text-lg">分类</div>
        <div class="flex flex-wrap justify-start mt-4 text-sm text-gray-600">
            @foreach($categorys as $category)
                <div class="mr-3">
                    <a href="/category/{{ $category['id'] }}"
                       class="block bg-gray-50 hover:shadow rounded leading-10 mb-3 px-2 truncate">
                        {{ $category['name'] }}
                        ({{ $category['article_count'] }})
                    </a>
                </div>
            @endforeach
        </div>
    </div>
</div>
